import http from '../util/http.js';

export default {
	/**
	 * @method 获取车辆品牌
	 * */
	getCarBrandList() {
		return http.get({
			url: '/csj-carmodelbase/getCarBrandList'
		});
	},
	
	/**
	 * @method 获取车辆类型
	 * */
	getCarTypeList(name, page, limit) {
		return http.get({
			url: '/csj-carmodelbase/getByBrandName',
			data: {
				name,
				currentPage: page,
				pageCount: limit
			}
		});
	},
	
	/**
	 * @method 获取仓库
	 * @param {Number} page			- 页面
	 * @param {Number} limit		- 页面
	 * */
	getStorageList(page, limit) {
		return http.get({
			url: '/csj-warehouse/listByPage',
			data: {
				currentPage: page,
				pageCount: limit
			}
		});
	}
};
